package cc.lj.internal.coupons.domain.ticket.model.vo.convert;

import cc.lj.internal.coupons.domain.ticket.model.vo.TicketPackageDO;
import cc.lj.internal.coupons.infrastructure.po.TicketPackagePO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 券包表 PO 与 DO之间的转换
 * @author liangxifeng
 * @date 2022-08-23
 */
@Mapper
public interface TicketPackagePOConvertDO {
    TicketPackagePOConvertDO INSTANCE = Mappers.getMapper(TicketPackagePOConvertDO.class);
    //do to po
    TicketPackagePO convert(TicketPackageDO ticketPackageDO);

    //po to do
    TicketPackageDO convert(TicketPackagePO ticketPackagePO);
}
